package com.ruoyi;

import com.ruoyi.common.security.annotation.EnableCustomConfig;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * 装修AI应用启动程序
 */
@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class})
@EnableTransactionManagement
@EnableCustomConfig
@MapperScan("com.ruoyi.mapper")
public class DecorativeAlApp
{
    public static void main( String[] args )
    {
        // 设置系统属性，禁用日志
        System.setProperty("ruoyi.log.enabled", "false");
        SpringApplication.run(DecorativeAlApp.class, args);
        System.out.println("(๑•̀ㅂ•́)و✧ 系统模块启动完毕，准备就绪！ (｡･ω･｡)ﾉ♡ \n" +
                "     .-~~~~~~~~~-._       _.-~~~~~~~~~-.     \n" +
                "     '.__              ~.   .~              __.'    \n" +
                "     .'  \\            __\\   /__            /  '.   \n" +
                "    :  _/`._       /'     \\\\     '\\       _.`\\_  :  \n" +
                "   : /.'`-.`/     /       \\       \\     \\`-.`'.\\ :  \n" +
                "  :/.'    ||    .'         |         '.    ||    '.\\: \n" +
                "  |/     _ ||   _/           |           \\_   ||     \\| \n" +
                "  ||    / \\||  /             |             \\ ||    ||  \n" +
                "  ||   |   || |              |              | ||   ||  \n" +
                "  ||   |   || |              |              | ||   ||  \n" +
                "  |\\   \\  / || \\              |              / ||  /   /| \n" +
                "  | \\   \\/  ||  \\           |           /  || \\/   / | \n" +
                "  |  '.      |   '._____     |     _____.'   |      .' | \n" +
                "  |    '-.    |      \\    \\   |   /    /      |    .-'    | \n" +
                "  |      '.   |       \\    \\_ | _/    /       |   .'      | \n" +
                "  |        '. |        \\     \\/     /        | .'        | \n" +
                "  |          '|         \\          /         |'          | \n" +
                "   \\          |          \\        /          |          /  \n" +
                "    '.        |          \\______/          |        .'   \n" +
                "      '-._____ |______________________| _____.-'       \n" +
                "              '-.____________________.-'                \n");
    }
}
